<?php

class address_unit_dao extends dao
{
    protected $table_name = 'address_unit';
    protected $db_config_key = 'default';

    public function find_by_name($name)
    {
        if ($name) {

            return $this->find_by_column([
                'name' => $name,
            ]);
        } else {

            return null_entity::create('address_unit');
        }
    }
}
